<template>
  <div class="module1">
    <div class="module1-head">
      <div class="module1-head-left">{{ title }}</div>
      <div class="module1-head-right" v-if="$slots.subtitle">
        <slot name="subtitle"></slot>
      </div>
    </div>

    <div class="module1-content">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  title: String
})
</script>
<style scoped lang="scss">
.module1 {
  width: 100%;
  padding-top: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  .module1-head {
    width: 100%;
    position: relative;
  }
  .module1-head-left {
    width: 100%;
    max-width: 405px;
    height: 33px;
    background: url('@/assets/img/card-head.png') no-repeat center;
    background-size: 100% 100%;
    font-family: FZZYJW;
    font-weight: normal;
    font-size: 20px;
    color: #c3ff55;
    line-height: 24px;
    padding-left: 42px;
    box-sizing: border-box;
  }
  .module1-content {
    flex: 1;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
  }
}
</style>
